package com.ytkj.tradeserver.service.iservice;

import com.ytkj.tradeserver.entity.AttachmentFileVO;
import com.ytkj.tradeserver.entity.UserInfo;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.commons.CommonsMultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * Created by Administrator on 2017/3/18.
 */
public interface IAttachmentFileService {

    public int savefileData(AttachmentFileVO file);

    public void saveSingleFileData(String businessId, String businessType, UserInfo userInfo, HttpServletRequest request);

    public void saveMultiUploadFile(String businessId,String businessType,
                                    UserInfo userInfo,CommonsMultipartFile[] files,
                                    HttpServletRequest request);
    public List<AttachmentFileVO> queryFiles(AttachmentFileVO file);
}
